package com.zhujiaji.controller;

import com.zhujiaji.common.Result;
import com.zhujiaji.service.PermissionService;
import com.zhujiaji.vo.RouterVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 朱佳吉
 * @date 2024/3/17 13:22
 */
@RestController
@RequestMapping("/api/permission")
public class PermissionController {

    @Resource
    private PermissionService permissionService;

    @GetMapping("/getRouter")
    public Result<List<RouterVo>> getRouter() {
        return permissionService.getRouter();
    }
}
